//
//  SlideMenuCell.m
//  HMMarket
//
//  Created by 孙鹏飞 on 2017/5/8.
//  Copyright © 2017年 homai. All rights reserved.
//

#import "SlideMenuCell.h"

@interface SlideMenuCell ()

@property (weak, nonatomic) IBOutlet UIImageView *icon;

@property (weak, nonatomic) IBOutlet UILabel *title;

@end

@implementation SlideMenuCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
}

- (void)fillDataWithIndex:(NSIndexPath *)index
{
    switch (index.row) {
        case 0:
            _icon.image = [UIImage imageNamed:@"home_indent"];
            _title.text = @"我的订单";
            break;
        case 1:
            _icon.image = [UIImage imageNamed:@"home_discountcoupon"];
            _title.text = @"我的优惠券";
            break;
        case 2:
            _icon.image = [UIImage imageNamed:@"home_location"];
            _title.text = @"地址管理";
            break;
        case 3:
            _icon.image = [UIImage imageNamed:@"home_lock"];
            _title.text = @"修改密码";
            break;
        case 4:
            _icon.image = [UIImage imageNamed:@"home_quit"];
            _title.text = @"退出登录";
            break;
            
        default:
            break;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
